import axios from '@/utils/request'

/**
 * 获取频道新闻
 * @param {*} channelid 频道id,获取对应频道新闻
 * @param {*} timestamp 时间戳，继续加载新的新闻
 */
export const getChannelArticles = (channelid, timestamp) => {
  return axios({
    url: '/v1_1/articles',
    method: 'GET',
    params: {
      channel_id: channelid,
      timestamp,
      with_top: true
    }
  })
}
